package J1_11;

import java.util.Scanner;

public class J111task2 {
    public static void main(String[] args) {
        int x,y;
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入两个整数:");
        x=scanner.nextInt();
        y=scanner.nextInt();
        System.out.println(gbs(x,y));
    }
    private  static  int  gbs(int x,int y){
        int s=0;
        s=x*y;
        for (int i=2;i<s;i++){
            if (i*x==i*y){
//                System.out.println(i);
                return  i;
            }
        }
        return  s;
    }
}
